package ch09.shili;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

//字符缓冲输出流
public class S08 {

    public static void main(String[] args) {
        try(BufferedWriter bw = new BufferedWriter(new FileWriter("data/test8.txt"))){
            bw.write("亲爱的小伙伴");
            bw.newLine();
            bw.write("加油");
            bw.flush();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
